package demo1.old;

public class Bottom {
    // 依赖轮胎
    private Tire tire;
    public Bottom(int size) {
        tire = new Tire(size);
    }

    public void init() {
        System.out.println("执行了底盘初始化，依赖轮胎");
        tire.init();
    }
}
